package com.example.tests;
 
import org.testng.annotations.Test;

public class GroupCreationTests extends TestBase {
	
	@Test
	public void createNotEmptyGroup() throws Exception {
		openMainPage();
		openGroupsPage();
		gotoNewGroup();
		GroupData group = new GroupData();
		group.name = "Group name";
		group.header = "Header";
		group.footer = "Footer";
		fillGroupFields(group);
		submitCreation();
		gotoGroupsPage();
	}
	
	@Test
	public void createEmptyGroup() throws Exception {
		openMainPage();
		openGroupsPage();
		gotoNewGroup();
		fillGroupFields(new GroupData("", "", ""));
		submitCreation();
		gotoGroupsPage();
	}
}
